<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>手机绑定</title>
    <link rel="stylesheet" href="${base}/layui/css/layui.css">
    <link rel="stylesheet" href="${base}/awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="${base}/css/admin.css">
    <style>
    	.layui-bg-black{        width: 200px;height: 136px;margin-right: 30px;float: left;text-align: center;font-size: 33px;color: #000000!important;padding-top: 30px;}
    	.hide {display: none;}
    	.checkbox{display: inline-block;}
    	.layui-form-item{font-size: 18px;}
    	.width100 {width: 100px; margin-right: 30px;float: left;}
    	.width180 {width: 180px; margin-right: 20px;float: left;}
    	.layui-input { display: inline-block; }
    </style>
</head>
<body class="layui-layout-body" style="overflow:scroll;">
<#include "/common/left.flt">	
<div class="layui-main" style="position: absolute;left: 204px;top: 4px; width: calc(100% - 210px);" >
<fieldset class="layui-elem-field layui-field-title" >
  <legend>操作提示</legend>
</fieldset>


<table class="layui-table" >
	<thead>
       <tr>
            <th>id</th>
            <th>用户id</th>
            <th>手机</th>
            <th>时间</th>
            <th>操作</th>
        </tr>
     </thead>
     <tbody>
     <#list list as one>
     <tr>
     	<td>${one.id}</td>
     	<td><a href="${base}/users_list/detail?user_id=${one.user_id}" target="_blank" >${one.user_id?default('')}</a></td>
     	<td>${one.user_mobile?default('')}</td>
     	<td>${one.create_time_string} </td>
     	<td><a onclick="del(${one.id});" ><span class="fa fa-trash"></span></a></td>
     </tr>
     </#list>
     </tbody>
</table>

</body>
<script src="${base}/js/jquery-2.1.4.min.js" type="text/javascript"></script>
<script src="${base}/layui/layui.all.js"></script>
<script type="text/javascript">

function del(id){
	//询问框
	layer.confirm('确定要删除吗？', {
	  btn: ['确定'] //按钮
	}, function(){
		$.post("${base}/users_list/wrapDelete",
		   		{"id":id},function(data){ 
		   			layer.alert(data);
		   			window.location.reload();
		   		}
		    );  
	});
}

</script>
</html>